<?php
include '../config/config.php';
include '../lib/produk.php';

$config=new config();
$config->connect();

if (isset ($_GET["id"])){
	$Produk_Dao=new Produk_Dao();
	$produk = new Produk();
	$produk->id_produk = $_GET["id"];
	$Produk_Dao->delete($produk);
	$config->close();
	header("Location:daftar_produk.php");

}